package org.itt.cp.signeddoc;

import java.util.Date;
import java.util.TreeMap;

import org.itt.ap.PECMap;
import org.itt.ap.Source;

public class SignedDoc implements Source {
	String callerCountry;
	String callerFiscalcode;
	String callerId;
	String callerName;
	String callerSurname;
	Date creationTime;
	int id;
	TreeMap<?, ?> map;
	String profile;
	String requestStatus;
	String signedDoc;
	String support;
	Date updateTime;
	String userId;
	String userCountry;
	String userFiscalcode;
	String userName;
	String userSurname;

	public String getCallerCountry() {
		return callerCountry;
	}

	public String getCallerFiscalcode() {
		return callerFiscalcode;
	}

	public String getCallerId() {
		return callerId;
	}

	public String getCallerName() {
		return callerName;
	}

	public String getCallerSurname() {
		return callerSurname;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public int getId() {
		return id;
	}

	public String getProfile() {
		return profile;
	}

	public String getRequestStatus() {
		return requestStatus;
	}

	public String getSignedDoc() {
		return signedDoc;
	}

	public String getSupport() {
		return support;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public String getUserId() {
		return userId;
	}

	public String getUserCountry() {
		return userCountry;
	}

	public String getUserFiscalcode() {
		return userFiscalcode;
	}

	public String getUserName() {
		return userName;
	}

	public String getUserSurname() {
		return userSurname;
	}

	public void setCallerCountry(String callerCountry) {
		if(callerCountry.isEmpty()) {
			callerCountry = "IT";
		}
		
		this.callerCountry = callerCountry;
	}

	public void setCallerFiscalcode(String callerFiscalcode) {
		if(callerFiscalcode.isEmpty()) {
			callerFiscalcode = this.callerId;
		}
		
		this.callerFiscalcode = callerFiscalcode;
	}

	public void setCallerId(String callerId) {
		this.callerId = callerId;
	}

	public void setCallerName(String callerName) {
		if(callerName.isEmpty()) {
			callerName = this.callerId;
		} 
		
		this.callerName = callerName;
	}

	public void setCallerSurname(String callerSurname) {
		if(callerSurname.isEmpty()) {
			callerSurname = this.callerId;
		} 
		
		this.callerSurname = callerSurname;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}

	public void setRequestStatus(String requestStatus) {
		this.requestStatus = requestStatus;
	}

	public void setSignedDoc(String signedDoc) {
		this.signedDoc = signedDoc;
	}

	public void setSupport(String support) {
		this.support = support;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public void setUserCountry(String userCountry) {
		if(userCountry.isEmpty()) {
			userCountry = "IT";
		}
		
		this.userCountry = userCountry;
	}

	public void setUserFiscalcode(String userFiscalcode) {
		if(userFiscalcode.isEmpty()) {
			userFiscalcode = this.userId;
		}
		
		this.userFiscalcode = userFiscalcode;
	}

	public void setUserName(String userName) {
		if(userName.isEmpty()) {
			userName = this.userId;
		} 
		
		this.userName = userName;
	}

	public void setUserSurname(String userSurname) {
		if(userSurname.isEmpty()) {
			userSurname = this.userId;
		} 
		
		this.userSurname = userSurname;
	}

	@Override
	public void setPECMap(PECMap map) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public PECMap getPECMap() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setMap(TreeMap<Integer, Source> map) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public TreeMap<Integer, Source> getMap() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}
}
